package com.md.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.md.value.ApiTypeEnum;
import com.md.value.enums.ApiMethodEnum;
import com.md.value.enums.AuthEnum;
import com.md.value.enums.OperationEnum;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

/**
 * @author 刘骄阳
 * 2024-07-14 22:13
 */
@Data
@ApiOperation("接口响应实体")
public class ApiResponse {
  /**
   * 唯一标识id
   */
  @JsonFormat(shape = JsonFormat.Shape.STRING)
  @ApiModelProperty("主键id")
  private Long id;
  /**
   * 权限类型
   */
  @ApiModelProperty("权限类型")
  private AuthEnum auth;
  /**
   * 应用logo
   */
  @ApiModelProperty("应用logo")
  private String url;
  /**
   * 请求方式(POST;GET;)
   */
  @ApiModelProperty("请求方式(POST;GET;)")
  private ApiMethodEnum method;

  @ApiModelProperty("接口类型(PUBLIC;PRIVATE)")
  private ApiTypeEnum apiType;
  /**
   * 租户id
   */
  @ApiModelProperty("租户id")
  private Long tenantId;
  /**
   * 应用id
   */
  @ApiModelProperty("应用id")
  private Long brandId;
  /**
   * 操作类型(0: 增; 1: 删; 2: 改; 3: 查; 4: 导出; 5: 导入; 6: 登录;)
   */
  @ApiModelProperty("操作类型(0: 增; 1: 删; 2: 改; 3: 查; 4: 导出; 5: 导入; 6: 登录;)")
  private OperationEnum operation;
  /**
   * 接口名
   */
  @ApiModelProperty("接口名")
  private String title;
}
